﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.CMS263.PO;
using Com.CMS263.BLL;
using Com.CMS263.Util;

namespace Com.CMS263.Web.manage.TvStation
{
    public partial class tvStationPeopleList : System.Web.UI.Page
    {

        //电视台分页
       public int page = 1;
        int pagesize = 10;
        public int count;
        public TVstationBLL tvBll = new TVstationBLL();
        public IList<TvStationPeople> tvPList = new List<TvStationPeople>();
        tvStationPeopleBLL tvPBll = new tvStationPeopleBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            //电视台
            page= Convert.ToInt32(Request.QueryString.Get("page"));
            if (page <= 0)
            {
                page= 1;
            }
            tvPList = tvPBll.FindList(page, pagesize);
            count = tvPBll.GetResultCount();

        }
        //电视台分页
        public string GetPagerTv()
        {
            return EnPager.GetNumPager(5,count, pagesize, page, "");
        }
    }
}
